<template>
  <div class="header">
    <el-carousel indicator-position="outside">
      <el-carousel-item v-for="item in 4" :key="item">
        <!-- <el-carousel :interval="4000" type="card" height="400px">
      <el-carousel-item v-for="item in imagesbox" :key="item.id">
        <img :src="item.img" class="image" />
      </el-carousel-item>
    </el-carousel> -->
        <img
          src='http://qrdj.xddtech.com/Public/upload/images/goods/2017-03-14/58c7d2ebc6fff.jpg'
          alt=""
        />
        <h3>{{ item }}</h3>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
<script>
export default {
  //   data () {
  //     return {
  //       imagesbox: [
  //         {
  //           id: 0,
  //           img: require('http://qrdj.xddtech.com/Public/upload/images/goods/2017-03-14/58c7d2ebc6fff.jpg')
  //         },
  //         {
  //           id: 1,
  //           img: require('https://img.alicdn.com/tfs/TB16EfYn.Y1gK0jSZFCXXcwqXXa-520-280.jpg')
  //         },
  //         {
  //           id: 2,
  //           img: require('https://aecpm.alicdn.com/tfscom/TB1BpC_kND1gK0jSZFyXXciOVXa.jpg')
  //         },
  //         {
  //           id: 3,
  //           img: require('https://img.alicdn.com/tfs/TB1bsh0QgDqK1RjSZSyXXaxEVXa-520-280.jpg')
  //         }
  //       ]
  //     }
  //   }
}
</script>
<style scoped>
.el-carousel {
  width: 530px;
  height: 260px;
  margin: 0 auto;
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 260px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
